<?php
//读取内容
$content = file_get_contents('20.html');

$preg ='@{{([a-z]\w*?)}}@';

preg_match_all($preg,$content,$matchs);

foreach($matchs[0] as $id=>$value)
{
	$replace ='<?php echo '.$matchs[1][$id].';?>';
	$content =str_replace($value, $replace, $content);
}

echo $content;
